package jnpf.model.meeting.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MeetingDTO {

    private String id;
    private String title;
    private String ou;
    private String summary;
    private String place;
    private Date startTime;
    private Integer lastTime;
    private Integer actived;
    private String coord;
    private Integer pageNum = 1;
    private Integer pageSize;
    private Integer dataNum;

    public Integer getDataNum() {
        this.dataNum = (this.pageNum - 1) * this.pageSize;
        return this.dataNum;
    }
}
